package com.heima.utils.thread;

import com.heima.model.user.pojos.ApUser;

public class ApThreadLocal {

    private static ThreadLocal<ApUser> AP_THREAD_LOCAL=new ThreadLocal();

    public static void setApUser(ApUser apUser){
        AP_THREAD_LOCAL.set(apUser);
    }

    public static  ApUser getApUser(){
      return   AP_THREAD_LOCAL.get();
    }

    public static  void removeApUser(){
        AP_THREAD_LOCAL.remove();
    }
}
